<extend name="Public/base" />

<block name="body">
  <!-- 标题栏 -->
  <div class="main-title">
    <h2>{$meta_title}</h2>
  </div>

  <div class="tools auth-botton">
    <a id="add-group" class="btn" href="{:U('editNav')}">添加导航</a>
    <button class="btn ajax-post confirm" target-form="ids" url="/Shop/Store/delNav.html">删除</button>
  </div>
  <!-- 数据列表 -->
  <div class="data-table table-striped">
    <table class="">
      <thead>
        <tr>
          <th class="row-selected" width="50">
            <input class="checkbox check-all" type="checkbox">
          </th>
          <th>导航名称</th>
          <th>是否显示</th>
          <th>排序</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <notempty name="lists">
          <volist name="lists" id="vo">
            <tr class="status_trclass_1">
              <td><input class="ids row-selected" type="checkbox" name="ids[]" value="{$vo.id}"></td>
              <td>{$vo.title}</td>
              <td>{$vo.is_show}</td>
              <td>{$vo.sort}</td>
              <td>
                <a href="{:U('editNav?id='.$vo['id'])}">[编辑]</a>
                <a href="{:U('delNav?ids='.$vo['id'])}" class="confirm ajax-get">[删除]</a>
              </td>
            </tr>
          </volist>
        <else/>
          <td colspan="10" class="text-center"> aOh! 暂时还没有内容! </td>
        </notempty>
      </tbody>
    </table>
  </div>
  <div class="page">
    {$_page}
  </div>
</block>

<block name="script">
  <script type="text/javascript" charset="utf-8">
    //导航高亮
    highlight_subnav('{:U("Store/nav")}');
  </script>
</block>
